home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
You can browse this item here: cprog.sty
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| DirectMusic Style (music/directMusicStyle)
| ext
| Unsupported |
1%
| dexvert
| Microsoft Word Style Sheet (other/microsoftWordStyleSheet)
| ext
| Unsupported |
1%
| dexvert
| Grand Theft Auto 2 Style data (other/grandTheftAuto2StyleData)
| ext
| Unsupported |
1%
| dexvert
| KORG File (other/korgFile)
| ext
| Unsupported |
1%
| dexvert
| MAGIX music studio Style (other/magixMusicStudioStyle)
| ext
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| text/x-matlab
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 25 20 63 70 72 6f 67 2e | 74 65 78 20 28 6f 72 20 |% cprog.|tex (or |
|00000010| 63 70 72 6f 67 2e 73 74 | 79 29 20 2d 20 66 6f 72 |cprog.st|y) - for|
|00000020| 6d 61 74 74 69 6e 67 20 | 6f 66 20 43 20 70 72 6f |matting |of C pro|
|00000030| 67 72 61 6d 73 0a 25 20 | 42 79 20 5c 27 45 61 6d |grams.% |By \'Eam|
|00000040| 6f 6e 6e 20 4d 63 4d 61 | 6e 75 73 20 3c 65 6d 63 |onn McMa|nus <emc|
|00000050| 6d 61 6e 75 73 40 63 73 | 2e 74 63 64 2e 69 65 3e |manus@cs|.tcd.ie>|
|00000060| 2e 20 20 54 68 69 73 20 | 66 69 6c 65 20 69 73 20 |. This |file is |
|00000070| 6e 6f 74 20 63 6f 70 79 | 72 69 67 68 74 65 64 2e |not copy|righted.|
|00000080| 0a 25 20 24 49 64 3a 20 | 63 70 72 6f 67 2e 74 65 |.% $Id: |cprog.te|
|00000090| 78 2c 76 20 31 2e 34 20 | 39 30 2f 30 39 2f 31 32 |x,v 1.4 |90/09/12|
|000000a0| 20 32 33 3a 32 31 3a 32 | 36 20 65 6d 63 6d 61 6e | 23:21:2|6 emcman|
|000000b0| 75 73 20 45 78 70 20 24 | 0a 0a 25 20 54 68 69 73 |us Exp $|..% This|
|000000c0| 20 61 6c 6c 6f 77 73 20 | 43 20 70 72 6f 67 72 61 | allows |C progra|
|000000d0| 6d 73 20 74 6f 20 62 65 | 20 66 6f 72 6d 61 74 74 |ms to be| formatt|
|000000e0| 65 64 20 64 69 72 65 63 | 74 6c 79 20 62 79 20 54 |ed direc|tly by T|
|000000f0| 65 58 2e 20 20 49 74 20 | 63 61 6e 20 62 65 0a 25 |eX. It |can be.%|
|00000100| 20 69 6e 76 6f 6b 65 64 | 20 62 79 20 5c 63 70 72 | invoked| by \cpr|
|00000110| 6f 67 66 69 6c 65 7b 66 | 69 6c 65 6e 61 6d 65 7d |ogfile{f|ilename}|
|00000120| 20 6f 72 20 28 69 6e 20 | 4c 61 54 65 58 29 20 5c | or (in |LaTeX) \|
|00000130| 62 65 67 69 6e 7b 63 70 | 72 6f 67 7d 20 2e 2e 2e |begin{cp|rog} ...|
|00000140| 0a 25 20 5c 65 6e 64 7b | 63 70 72 6f 67 7d 20 6f |.% \end{|cprog} o|
|00000150| 72 20 28 69 6e 20 70 6c | 61 69 6e 20 54 65 58 29 |r (in pl|ain TeX)|
|00000160| 20 5c 63 70 72 6f 67 20 | 2e 2e 2e 20 5c 65 6e 64 | \cprog |... \end|
|00000170| 7b 63 70 72 6f 67 7d 2e | 20 20 49 6e 20 4c 61 54 |{cprog}.| In LaT|
|00000180| 65 58 2c 20 74 68 65 0a | 25 20 61 6c 74 65 72 6e |eX, the.|% altern|
|00000190| 61 74 69 76 65 20 66 6f | 72 6d 20 5c 62 65 67 69 |ative fo|rm \begi|
|000001a0| 6e 7b 63 70 72 6f 67 2a | 7d 20 69 73 20 61 6c 6c |n{cprog*|} is all|
|000001b0| 6f 77 65 64 2c 20 77 68 | 65 72 65 20 73 70 61 63 |owed, wh|ere spac|
|000001c0| 65 73 20 69 6e 20 43 20 | 73 74 72 69 6e 67 73 0a |es in C |strings.|
|000001d0| 25 20 61 72 65 20 70 72 | 69 6e 74 65 64 20 75 73 |% are pr|inted us|
|000001e0| 69 6e 67 20 74 68 65 20 | 60 73 71 75 61 72 65 20 |ing the |`square |
|000001f0| 75 27 20 63 68 61 72 61 | 63 74 65 72 20 28 6c 69 |u' chara|cter (li|
|00000200| 6b 65 20 4c 61 54 65 58 | 20 7b 76 65 72 62 61 74 |ke LaTeX| {verbat|
|00000210| 69 6d 2a 7d 29 2e 0a 25 | 20 49 6e 20 70 6c 61 69 |im*})..%| In plai|
|00000220| 6e 20 54 65 58 2c 20 79 | 6f 75 20 68 61 76 65 20 |n TeX, y|ou have |
|00000230| 74 6f 20 75 73 65 20 5c | 63 73 6e 61 6d 65 20 63 |to use \|csname c|
|00000240| 70 72 6f 67 2a 5c 65 6e | 64 63 73 6e 61 6d 65 20 |prog*\en|dcsname |
|00000250| 66 6f 72 20 74 68 69 73 | 20 28 73 6f 72 72 79 29 |for this| (sorry)|
|00000260| 2e 0a 25 20 49 66 20 79 | 6f 75 20 61 72 65 20 75 |..% If y|ou are u|
|00000270| 73 69 6e 67 20 5c 63 70 | 72 6f 67 66 69 6c 65 2c |sing \cp|rogfile,|
|00000280| 20 73 61 79 20 5c 63 70 | 72 6f 67 74 74 73 70 61 | say \cp|rogttspa|
|00000290| 63 65 74 72 75 65 20 62 | 65 66 6f 72 65 68 61 6e |cetrue b|eforehan|
|000002a0| 64 20 69 66 20 79 6f 75 | 0a 25 20 77 61 6e 74 20 |d if you|.% want |
|000002b0| 74 68 69 73 20 65 66 66 | 65 63 74 2e 0a 0a 25 20 |this eff|ect...% |
|000002c0| 54 68 65 20 66 6f 72 6d | 61 74 74 69 6e 67 20 69 |The form|atting i|
|000002d0| 73 20 28 6e 65 63 65 73 | 73 61 72 69 6c 79 29 20 |s (neces|sarily) |
|000002e0| 73 69 6d 70 6c 65 2e 20 | 20 43 20 74 65 78 74 20 |simple. | C text |
|000002f0| 69 73 20 73 65 74 20 69 | 6e 20 61 20 6e 6f 72 6d |is set i|n a norm|
|00000300| 61 6c 20 52 6f 6d 61 6e | 0a 25 20 66 6f 6e 74 2c |al Roman|.% font,|
|00000310| 20 63 6f 6d 6d 65 6e 74 | 73 20 69 6e 20 61 20 73 | comment|s in a s|
|00000320| 6c 61 6e 74 65 64 20 66 | 6f 6e 74 2c 20 61 6e 64 |lanted f|ont, and|
|00000330| 20 73 74 72 69 6e 67 73 | 20 69 6e 20 61 20 74 79 | strings| in a ty|
|00000340| 70 65 77 72 69 74 65 72 | 20 66 6f 6e 74 2c 20 77 |pewriter| font, w|
|00000350| 69 74 68 0a 25 20 73 70 | 61 63 65 73 20 6f 70 74 |ith.% sp|aces opt|
|00000360| 69 6f 6e 61 6c 6c 79 20 | 6d 61 64 65 20 76 69 73 |ionally |made vis|
|00000370| 69 62 6c 65 20 61 73 20 | 74 68 65 20 60 73 71 75 |ible as |the `squ|
|00000380| 61 72 65 20 75 27 20 73 | 79 6d 62 6f 6c 2e 20 20 |are u' s|ymbol. |
|00000390| 54 61 62 73 20 61 72 65 | 0a 25 20 65 78 70 61 6e |Tabs are|.% expan|
|000003a0| 64 65 64 20 74 6f 20 66 | 6f 75 72 20 73 70 61 63 |ded to f|our spac|
|000003b0| 65 73 20 28 74 68 69 73 | 20 64 6f 65 73 20 6e 6f |es (this| does no|
|000003c0| 74 20 6c 6f 6f 6b 20 67 | 6f 6f 64 20 77 68 65 6e |t look g|ood when|
|000003d0| 20 63 6f 6d 6d 65 6e 74 | 73 20 61 72 65 0a 25 20 | comment|s are.% |
|000003e0| 61 6c 69 67 6e 65 64 20 | 74 6f 20 74 68 65 20 72 |aligned |to the r|
|000003f0| 69 67 68 74 20 6f 66 20 | 70 72 6f 67 72 61 6d 20 |ight of |program |
|00000400| 74 65 78 74 29 2e 20 20 | 53 6f 6d 65 20 70 61 69 |text). |Some pai|
|00000410| 72 73 20 6f 66 20 69 6e | 70 75 74 20 63 68 61 72 |rs of in|put char|
|00000420| 61 63 74 65 72 73 0a 25 | 20 61 70 70 65 61 72 20 |acters.%| appear |
|00000430| 61 73 20 73 69 6e 67 6c | 65 20 6f 75 74 70 75 74 |as singl|e output|
|00000440| 20 63 68 61 72 61 63 74 | 65 72 73 3a 20 3c 3c 20 | charact|ers: << |
|00000450| 3c 3d 20 3e 3e 20 3e 3d | 20 21 3d 20 2d 3e 20 61 |<= >> >=| != -> a|
|00000460| 72 65 20 72 65 73 70 65 | 63 74 69 76 65 6c 79 0a |re respe|ctively.|
|00000470| 25 20 54 65 58 27 73 20 | 5c 6c 6c 20 5c 6c 65 20 |% TeX's |\ll \le |
|00000480| 5c 67 67 20 5c 67 65 20 | 5c 6e 65 20 5c 72 69 67 |\gg \ge |\ne \rig|
|00000490| 68 74 61 72 72 6f 77 2e | 20 20 53 61 79 20 5c 63 |htarrow.| Say \c|
|000004a0| 70 72 6f 67 70 61 69 72 | 73 66 61 6c 73 65 20 74 |progpair|sfalse t|
|000004b0| 6f 20 64 69 73 61 62 6c | 65 0a 25 20 74 68 69 73 |o disabl|e.% this|
|000004c0| 2e 0a 0a 25 20 59 6f 75 | 20 63 61 6e 20 65 73 63 |...% You| can esc|
|000004d0| 61 70 65 20 74 6f 20 54 | 65 58 20 77 69 74 68 69 |ape to T|eX withi|
|000004e0| 6e 20 63 70 72 6f 67 20 | 74 65 78 74 20 62 79 20 |n cprog |text by |
|000004f0| 64 65 66 69 6e 69 6e 67 | 20 61 6e 20 65 73 63 61 |defining| an esca|
|00000500| 70 65 20 63 68 61 72 61 | 63 74 65 72 2e 0a 25 20 |pe chara|cter..% |
|00000510| 54 68 65 20 63 68 61 72 | 61 63 74 65 72 20 40 20 |The char|acter @ |
|00000520| 69 73 20 73 75 69 74 61 | 62 6c 65 20 66 6f 72 20 |is suita|ble for |
|00000530| 43 20 61 6e 64 20 50 61 | 73 63 61 6c 2e 20 20 49 |C and Pa|scal. I|
|00000540| 20 68 61 76 65 20 6e 6f | 74 20 74 65 73 74 65 64 | have no|t tested|
|00000550| 20 6f 74 68 65 72 0a 25 | 20 63 68 61 72 61 63 74 | other.%| charact|
|00000560| 65 72 73 20 73 6f 20 74 | 68 65 79 20 6d 61 79 20 |ers so t|hey may |
|00000570| 69 6e 74 65 72 61 63 74 | 20 62 61 64 6c 79 20 77 |interact| badly w|
|00000580| 69 74 68 20 74 68 65 69 | 72 20 65 78 69 73 74 69 |ith thei|r existi|
|00000590| 6e 67 20 64 65 66 69 6e | 69 74 69 6f 6e 73 20 68 |ng defin|itions h|
|000005a0| 65 72 65 2e 0a 25 20 54 | 6f 20 64 65 66 69 6e 65 |ere..% T|o define|
|000005b0| 20 40 20 61 73 20 74 68 | 65 20 65 73 63 61 70 65 | @ as th|e escape|
|000005c0| 20 63 68 61 72 61 63 74 | 65 72 2c 20 64 6f 20 5c | charact|er, do \|
|000005d0| 63 70 72 6f 67 65 73 63 | 61 70 65 40 2e 20 20 54 |cprogesc|ape@. T|
|000005e0| 68 65 6e 20 77 69 74 68 | 69 6e 20 74 65 78 74 0a |hen with|in text.|
|000005f0| 25 20 79 6f 75 20 63 61 | 6e 20 64 6f 20 40 20 66 |% you ca|n do @ f|
|00000600| 6f 6c 6c 6f 77 65 64 20 | 62 79 20 54 65 58 20 63 |ollowed |by TeX c|
|00000610| 6f 6d 6d 61 6e 64 73 2e | 20 20 54 68 65 73 65 20 |ommands.| These |
|00000620| 63 6f 6d 6d 61 6e 64 73 | 20 77 69 6c 6c 20 62 65 |commands| will be|
|00000630| 20 69 6e 20 61 20 54 65 | 58 0a 25 20 67 72 6f 75 | in a Te|X.% grou|
|00000640| 70 20 77 69 74 68 20 74 | 68 65 20 5c 63 61 74 63 |p with t|he \catc|
|00000650| 6f 64 65 73 20 6f 66 20 | 5c 7b 7d 25 20 61 73 20 |odes of |\{}% as |
|00000660| 6e 6f 72 6d 61 6c 2e 20 | 20 54 68 65 20 63 6f 6d |normal. | The com|
|00000670| 6d 61 6e 64 73 20 61 72 | 65 20 74 65 72 6d 69 6e |mands ar|e termin|
|00000680| 61 74 65 64 0a 25 20 62 | 79 20 61 20 6e 65 77 6c |ated.% b|y a newl|
|00000690| 69 6e 65 2c 20 77 68 69 | 63 68 20 69 73 20 6e 6f |ine, whi|ch is no|
|000006a0| 74 20 63 6f 6e 73 69 64 | 65 72 65 64 20 70 61 72 |t consid|ered par|
|000006b0| 74 20 6f 66 20 74 68 65 | 20 70 72 6f 67 72 61 6d |t of the| program|
|000006c0| 20 74 65 78 74 2e 0a 0a | 25 20 54 68 65 20 66 6f | text...|% The fo|
|000006d0| 6e 74 73 20 62 65 6c 6f | 77 20 63 61 6e 20 62 65 |nts belo|w can be|
|000006e0| 20 63 68 61 6e 67 65 64 | 20 74 6f 20 61 6c 74 65 | changed| to alte|
|000006f0| 72 20 74 68 65 20 73 65 | 74 74 69 6e 67 20 6f 66 |r the se|tting of|
|00000700| 20 74 68 65 20 76 61 72 | 69 6f 75 73 20 70 61 72 | the var|ious par|
|00000710| 74 73 0a 25 20 6f 66 20 | 74 68 65 20 70 72 6f 67 |ts.% of |the prog|
|00000720| 72 61 6d 2e 20 20 54 68 | 65 20 5c 63 70 72 6f 67 |ram. Th|e \cprog|
|00000730| 62 61 73 65 6c 69 6e 65 | 73 6b 69 70 20 70 61 72 |baseline|skip par|
|00000740| 61 6d 65 74 65 72 20 63 | 61 6e 20 62 65 20 61 6c |ameter c|an be al|
|00000750| 74 65 72 65 64 20 74 6f | 0a 25 20 63 68 61 6e 67 |tered to|.% chang|
|00000760| 65 20 74 68 65 20 6c 69 | 6e 65 20 73 70 61 63 69 |e the li|ne spaci|
|00000770| 6e 67 2e 20 20 4c 61 54 | 65 58 27 73 20 5c 62 61 |ng. LaT|eX's \ba|
|00000780| 73 65 6c 69 6e 65 73 74 | 72 65 74 63 68 20 69 73 |selinest|retch is|
|00000790| 20 74 61 6b 65 6e 20 69 | 6e 74 6f 20 61 63 63 6f | taken i|nto acco|
|000007a0| 75 6e 74 0a 25 20 74 6f | 6f 2e 20 20 54 68 65 20 |unt.% to|o. The |
|000007b0| 69 6e 64 65 6e 74 61 74 | 69 6f 6e 20 61 70 70 6c |indentat|ion appl|
|000007c0| 69 65 64 20 74 6f 20 74 | 68 65 20 77 68 6f 6c 65 |ied to t|he whole|
|000007d0| 20 70 72 6f 67 72 61 6d | 20 69 73 20 5c 63 70 72 | program| is \cpr|
|000007e0| 6f 67 69 6e 64 65 6e 74 | 2c 0a 25 20 69 6e 69 74 |ogindent|,.% init|
|000007f0| 69 61 6c 6c 79 20 30 2e | 20 20 42 65 66 6f 72 65 |ially 0.| Before|
|00000800| 20 61 6e 64 20 61 66 74 | 65 72 20 74 68 65 20 70 | and aft|er the p|
|00000810| 72 6f 67 72 61 6d 20 74 | 68 65 72 65 20 61 72 65 |rogram t|here are|
|00000820| 20 73 6b 69 70 73 20 6f | 66 0a 25 20 5c 62 65 66 | skips o|f.% \bef|
|00000830| 6f 72 65 63 70 72 6f 67 | 73 6b 69 70 20 61 6e 64 |orecprog|skip and|
|00000840| 20 5c 61 66 74 65 72 63 | 70 72 6f 67 73 6b 69 70 | \afterc|progskip|
|00000850| 3b 20 74 68 65 20 64 65 | 66 61 75 6c 74 20 76 61 |; the de|fault va|
|00000860| 6c 75 65 73 20 61 72 65 | 20 5c 70 61 72 73 6b 69 |lues are| \parski|
|00000870| 70 0a 25 20 61 6e 64 20 | 30 20 72 65 73 70 65 63 |p.% and |0 respec|
|00000880| 74 69 76 65 6c 79 20 28 | 73 69 6e 63 65 20 74 68 |tively (|since th|
|00000890| 65 72 65 20 77 69 6c 6c | 20 6f 66 74 65 6e 20 62 |ere will| often b|
|000008a0| 65 20 61 20 5c 70 61 72 | 73 6b 69 70 20 61 66 74 |e a \par|skip aft|
|000008b0| 65 72 20 74 68 65 0a 25 | 20 70 72 6f 67 72 61 6d |er the.%| program|
|000008c0| 20 61 6e 79 77 61 79 29 | 2e 0a 0a 25 20 49 66 20 | anyway)|...% If |
|000008d0| 74 68 65 20 73 6f 75 72 | 63 65 20 74 65 78 74 20 |the sour|ce text |
|000008e0| 69 73 20 50 61 73 63 61 | 6c 20 6f 72 20 4d 6f 64 |is Pasca|l or Mod|
|000008f0| 75 6c 61 2d 32 2c 20 73 | 61 79 20 5c 70 61 73 63 |ula-2, s|ay \pasc|
|00000900| 61 6c 74 72 75 65 20 6f | 72 20 5c 6d 6f 64 75 6c |altrue o|r \modul|
|00000910| 61 74 72 75 65 0a 25 20 | 28 72 65 73 70 65 63 74 |atrue.% |(respect|
|00000920| 69 76 65 6c 79 29 20 62 | 65 66 6f 72 65 20 66 6f |ively) b|efore fo|
|00000930| 72 6d 61 74 74 69 6e 67 | 20 69 74 2e 20 20 54 68 |rmatting| it. Th|
|00000940| 69 73 20 6d 61 6b 65 73 | 20 28 2a 20 2a 29 20 62 |is makes| (* *) b|
|00000950| 65 20 72 65 63 6f 67 6e | 69 73 65 64 20 66 6f 72 |e recogn|ised for|
|00000960| 0a 25 20 63 6f 6d 6d 65 | 6e 74 73 20 69 6e 73 74 |.% comme|nts inst|
|00000970| 65 61 64 20 6f 66 20 2f | 2a 20 2a 2f 2e 20 20 42 |ead of /|* */. B|
|00000980| 72 61 63 65 73 20 7b 7d | 20 61 72 65 20 61 6c 73 |races {}| are als|
|00000990| 6f 20 72 65 63 6f 67 6e | 69 73 65 64 20 66 6f 72 |o recogn|ised for|
|000009a0| 20 50 61 73 63 61 6c 2e | 0a 25 20 5c 70 61 73 63 | Pascal.|.% \pasc|
|000009b0| 61 6c 66 61 6c 73 65 20 | 6f 72 20 5c 6d 6f 64 75 |alfalse |or \modu|
|000009c0| 6c 61 66 61 6c 73 65 20 | 61 73 20 61 70 70 72 6f |lafalse |as appro|
|000009d0| 70 72 69 61 74 65 20 72 | 65 73 74 6f 72 65 73 20 |priate r|estores |
|000009e0| 74 68 65 20 64 65 66 61 | 75 6c 74 20 6f 66 20 43 |the defa|ult of C|
|000009f0| 2e 0a 0a 25 20 54 68 69 | 73 20 70 61 63 6b 61 67 |...% Thi|s packag|
|00000a00| 65 20 77 6f 72 6b 73 20 | 62 79 20 6d 61 6b 69 6e |e works |by makin|
|00000a10| 67 20 61 20 6c 61 72 67 | 65 20 6e 75 6d 62 65 72 |g a larg|e number|
|00000a20| 20 6f 66 20 63 68 61 72 | 61 63 74 65 72 73 20 61 | of char|acters a|
|00000a30| 63 74 69 76 65 2e 20 20 | 53 69 6e 63 65 0a 25 20 |ctive. |Since.% |
|00000a40| 65 76 65 6e 20 73 70 61 | 63 65 73 20 61 72 65 20 |even spa|ces are |
|00000a50| 61 63 74 69 76 65 2c 20 | 69 74 20 69 73 20 70 6f |active, |it is po|
|00000a60| 73 73 69 62 6c 65 20 74 | 6f 20 65 78 61 6d 69 6e |ssible t|o examin|
|00000a70| 65 20 74 68 65 20 6e 65 | 78 74 20 63 68 61 72 61 |e the ne|xt chara|
|00000a80| 63 74 65 72 20 69 6e 0a | 25 20 61 20 6d 61 63 72 |cter in.|% a macr|
|00000a90| 6f 20 62 79 20 6d 61 6b | 69 6e 67 20 69 74 20 61 |o by mak|ing it a|
|00000aa0| 20 70 61 72 61 6d 65 74 | 65 72 2c 20 72 61 74 68 | paramet|er, rath|
|00000ab0| 65 72 20 74 68 61 6e 20 | 75 73 69 6e 67 20 5c 66 |er than |using \f|
|00000ac0| 75 74 75 72 65 6c 65 74 | 20 61 73 20 6f 6e 65 0a |uturelet| as one.|
|00000ad0| 25 20 77 6f 75 6c 64 20 | 6e 6f 72 6d 61 6c 6c 79 |% would |normally|
|00000ae0| 20 64 6f 2e 20 20 54 68 | 69 73 20 69 73 20 6d 6f | do. Th|is is mo|
|00000af0| 72 65 20 63 6f 6e 76 65 | 6e 69 65 6e 74 2c 20 62 |re conve|nient, b|
|00000b00| 75 74 20 74 68 65 20 63 | 6f 64 69 6e 67 20 64 6f |ut the c|oding do|
|00000b10| 65 73 20 6d 65 61 6e 0a | 25 20 74 68 61 74 20 69 |es mean.|% that i|
|00000b20| 66 20 74 68 65 20 6e 65 | 78 74 20 63 68 61 72 61 |f the ne|xt chara|
|00000b30| 63 74 65 72 20 69 74 73 | 65 6c 66 20 77 61 6e 74 |cter its|elf want|
|00000b40| 73 20 74 6f 20 65 78 61 | 6d 69 6e 65 20 61 20 63 |s to exa|mine a c|
|00000b50| 68 61 72 61 63 74 65 72 | 20 69 74 20 6d 61 79 0a |haracter| it may.|
|00000b60| 25 20 6c 6f 6f 6b 20 61 | 74 20 61 20 74 6f 6b 65 |% look a|t a toke|
|00000b70| 6e 20 66 72 6f 6d 20 74 | 68 65 20 6d 61 63 72 6f |n from t|he macro|
|00000b80| 20 72 61 74 68 65 72 20 | 74 68 61 6e 20 74 68 65 | rather |than the|
|00000b90| 20 69 6e 70 75 74 20 74 | 65 78 74 2e 20 20 49 20 | input t|ext. I |
|00000ba0| 74 68 69 6e 6b 20 74 68 | 61 74 0a 25 20 61 6c 6c |think th|at.% all|
|00000bb0| 20 63 61 73 65 73 20 74 | 68 61 74 20 6f 63 63 75 | cases t|hat occu|
|00000bc0| 72 20 69 6e 20 70 72 61 | 63 74 69 63 65 20 68 61 |r in pra|ctice ha|
|00000bd0| 76 65 20 62 65 65 6e 20 | 6c 6f 6f 6b 65 64 20 61 |ve been |looked a|
|00000be0| 66 74 65 72 2e 0a 0a 25 | 20 54 68 65 20 6d 61 63 |fter...%| The mac|
|00000bf0| 72 6f 73 20 63 6f 75 6c | 64 20 73 74 69 6c 6c 20 |ros coul|d still |
|00000c00| 64 6f 20 77 69 74 68 20 | 73 6f 6d 65 20 77 6f 72 |do with |some wor|
|00000c10| 6b 2e 20 20 46 6f 72 20 | 65 78 61 6d 70 6c 65 2c |k. For |example,|
|00000c20| 20 74 68 65 20 62 69 67 | 20 6d 61 63 72 6f 0a 25 | the big| macro.%|
|00000c30| 20 64 65 66 69 6e 65 64 | 20 77 69 74 68 20 5b 5d | defined| with []|
|00000c40| 20 74 61 6b 69 6e 67 20 | 74 68 65 20 70 6c 61 63 | taking |the plac|
|00000c50| 65 20 6f 66 20 7b 7d 20 | 63 6f 75 6c 64 20 62 65 |e of {} |could be|
|00000c60| 20 72 65 63 6f 64 65 64 | 20 74 6f 20 75 73 65 20 | recoded| to use |
|00000c70| 7b 7d 20 61 6e 64 20 73 | 6f 0a 25 20 62 65 20 6d |{} and s|o.% be m|
|00000c80| 6f 72 65 20 6c 65 67 69 | 62 6c 65 2e 20 20 54 68 |ore legi|ble. Th|
|00000c90| 65 20 69 6e 74 65 72 6e | 61 6c 20 6d 61 63 72 6f |e intern|al macro|
|00000ca0| 73 20 65 74 63 20 73 68 | 6f 75 6c 64 20 68 61 76 |s etc sh|ould hav|
|00000cb0| 65 20 40 20 69 6e 20 74 | 68 65 69 72 20 6e 61 6d |e @ in t|heir nam|
|00000cc0| 65 73 2c 0a 25 20 61 6e | 64 20 73 68 6f 75 6c 64 |es,.% an|d should|
|00000cd0| 20 62 65 20 63 68 65 63 | 6b 65 64 20 61 67 61 69 | be chec|ked agai|
|00000ce0| 6e 73 74 20 4c 61 54 65 | 58 20 6d 61 63 72 6f 73 |nst LaTe|X macros|
|00000cf0| 20 66 6f 72 20 63 6c 61 | 73 68 65 73 2e 0a 0a 25 | for cla|shes...%|
|00000d00| 20 41 6c 6c 6f 77 20 6d | 75 6c 74 69 70 6c 65 20 | Allow m|ultiple |
|00000d10| 69 6e 63 6c 75 73 69 6f | 6e 20 74 6f 20 67 6f 20 |inclusio|n to go |
|00000d20| 66 61 73 74 65 72 2e 0a | 0a 5c 69 66 78 5c 75 6e |faster..|.\ifx\un|
|00000d30| 64 65 66 69 6e 65 64 5c | 63 70 72 6f 67 73 65 74 |defined\|cprogset|
|00000d40| 75 70 20 20 20 20 20 20 | 20 25 20 54 68 65 20 77 |up | % The w|
|00000d50| 68 6f 6c 65 20 66 69 6c | 65 2e 0a 0a 25 20 44 65 |hole fil|e...% De|
|00000d60| 66 69 6e 65 20 74 68 65 | 20 66 6f 6e 74 73 20 75 |fine the| fonts u|
|00000d70| 73 65 64 20 66 6f 72 20 | 70 72 6f 67 72 61 6d 20 |sed for |program |
|00000d80| 74 65 78 74 2c 20 63 6f | 6d 6d 65 6e 74 73 2c 20 |text, co|mments, |
|00000d90| 61 6e 64 20 73 74 72 69 | 6e 67 73 2e 0a 25 20 4e |and stri|ngs..% N|
|00000da0| 6f 74 65 20 74 68 61 74 | 20 69 66 20 5c 69 74 20 |ote that| if \it |
|00000db0| 69 73 20 75 73 65 64 20 | 66 6f 72 20 5c 63 63 6f |is used |for \cco|
|00000dc0| 6d 6d 65 6e 74 66 6f 6e | 74 2c 20 73 6f 6d 65 74 |mmentfon|t, somet|
|00000dd0| 68 69 6e 67 20 77 69 6c | 6c 20 6e 65 65 64 20 74 |hing wil|l need t|
|00000de0| 6f 0a 25 20 62 65 20 64 | 6f 6e 65 20 61 62 6f 75 |o.% be d|one abou|
|00000df0| 74 20 24 20 73 69 67 6e | 73 2c 20 77 68 69 63 68 |t $ sign|s, which|
|00000e00| 20 63 6f 6d 65 20 6f 75 | 74 20 61 73 20 70 6f 75 | come ou|t as pou|
|00000e10| 6e 64 73 20 73 74 65 72 | 6c 69 6e 67 2e 0a 5c 6c |nds ster|ling..\l|
|00000e20| 65 74 5c 63 74 65 78 74 | 66 6f 6e 74 3d 5c 72 6d |et\ctext|font=\rm|
|00000e30| 20 5c 6c 65 74 5c 63 63 | 6f 6d 6d 65 6e 74 66 6f | \let\cc|ommentfo|
|00000e40| 6e 74 3d 5c 73 6c 20 5c | 6c 65 74 5c 63 73 74 72 |nt=\sl \|let\cstr|
|00000e50| 69 6e 67 66 6f 6e 74 3d | 5c 74 74 0a 0a 25 20 50 |ingfont=|\tt..% P|
|00000e60| 61 72 61 6d 65 74 65 72 | 73 2e 20 20 55 6e 66 6f |arameter|s. Unfo|
|00000e70| 72 74 75 6e 61 74 65 6c | 79 20 5c 6e 65 77 64 69 |rtunatel|y \newdi|
|00000e80| 6d 65 6e 20 69 73 20 5c | 6f 75 74 65 72 20 28 5c |men is \|outer (\|
|00000e90| 6f 75 74 65 72 6e 65 73 | 73 20 69 73 20 61 20 6d |outernes|s is a m|
|00000ea0| 69 73 74 61 6b 65 29 0a | 25 20 73 6f 20 77 65 20 |istake).|% so we |
|00000eb0| 6e 65 65 64 20 61 20 73 | 75 62 74 65 72 66 75 67 |need a s|ubterfug|
|00000ec0| 65 20 69 6e 20 63 61 73 | 65 20 77 65 20 61 72 65 |e in cas|e we are|
|00000ed0| 20 73 6b 69 70 70 69 6e | 67 20 74 68 65 20 66 69 | skippin|g the fi|
|00000ee0| 6c 65 2e 0a 5c 63 73 6e | 61 6d 65 20 6e 65 77 64 |le..\csn|ame newd|
|00000ef0| 69 6d 65 6e 5c 65 6e 64 | 63 73 6e 61 6d 65 5c 63 |imen\end|csname\c|
|00000f00| 70 72 6f 67 62 61 73 65 | 6c 69 6e 65 73 6b 69 70 |progbase|lineskip|
|00000f10| 20 5c 63 70 72 6f 67 62 | 61 73 65 6c 69 6e 65 73 | \cprogb|aselines|
|00000f20| 6b 69 70 3d 5c 62 61 73 | 65 6c 69 6e 65 73 6b 69 |kip=\bas|elineski|
|00000f30| 70 0a 5c 63 73 6e 61 6d | 65 20 6e 65 77 64 69 6d |p.\csnam|e newdim|
|00000f40| 65 6e 5c 65 6e 64 63 73 | 6e 61 6d 65 5c 63 70 72 |en\endcs|name\cpr|
|00000f50| 6f 67 69 6e 64 65 6e 74 | 20 5c 63 70 72 6f 67 69 |ogindent| \cprogi|
|00000f60| 6e 64 65 6e 74 3d 30 70 | 74 0a 5c 63 73 6e 61 6d |ndent=0p|t.\csnam|
|00000f70| 65 20 6e 65 77 64 69 6d | 65 6e 5c 65 6e 64 63 73 |e newdim|en\endcs|
|00000f80| 6e 61 6d 65 5c 63 70 72 | 6f 67 77 69 64 74 68 20 |name\cpr|ogwidth |
|00000f90| 25 20 47 65 74 73 20 64 | 65 66 61 75 6c 74 3d 5c |% Gets d|efault=\|
|00000fa0| 68 73 69 7a 65 20 77 68 | 65 6e 20 63 70 72 6f 67 |hsize wh|en cprog|
|00000fb0| 20 69 6e 76 6f 6b 65 64 | 2e 0a 5c 63 73 6e 61 6d | invoked|..\csnam|
|00000fc0| 65 20 6e 65 77 73 6b 69 | 70 5c 65 6e 64 63 73 6e |e newski|p\endcsn|
|00000fd0| 61 6d 65 5c 62 65 66 6f | 72 65 63 70 72 6f 67 73 |ame\befo|recprogs|
|00000fe0| 6b 69 70 20 5c 62 65 66 | 6f 72 65 63 70 72 6f 67 |kip \bef|orecprog|
|00000ff0| 73 6b 69 70 3d 5c 70 61 | 72 73 6b 69 70 0a 5c 63 |skip=\pa|rskip.\c|
|00001000| 73 6e 61 6d 65 20 6e 65 | 77 73 6b 69 70 5c 65 6e |sname ne|wskip\en|
|00001010| 64 63 73 6e 61 6d 65 5c | 61 66 74 65 72 63 70 72 |dcsname\|aftercpr|
|00001020| 6f 67 73 6b 69 70 20 5c | 61 66 74 65 72 63 70 72 |ogskip \|aftercpr|
|00001030| 6f 67 73 6b 69 70 3d 30 | 70 74 0a 5c 63 73 6e 61 |ogskip=0|pt.\csna|
|00001040| 6d 65 20 6e 65 77 69 66 | 5c 65 6e 64 63 73 6e 61 |me newif|\endcsna|
|00001050| 6d 65 5c 69 66 63 70 72 | 6f 67 74 74 73 70 61 63 |me\ifcpr|ogttspac|
|00001060| 65 0a 5c 63 73 6e 61 6d | 65 20 6e 65 77 69 66 5c |e.\csnam|e newif\|
|00001070| 65 6e 64 63 73 6e 61 6d | 65 5c 69 66 63 70 72 6f |endcsnam|e\ifcpro|
|00001080| 67 70 61 69 72 73 20 5c | 63 70 72 6f 67 70 61 69 |gpairs \|cprogpai|
|00001090| 72 73 74 72 75 65 0a 5c | 63 73 6e 61 6d 65 20 6e |rstrue.\|csname n|
|000010a0| 65 77 69 66 5c 65 6e 64 | 63 73 6e 61 6d 65 5c 69 |ewif\end|csname\i|
|000010b0| 66 70 61 73 63 61 6c 0a | 5c 63 73 6e 61 6d 65 20 |fpascal.|\csname |
|000010c0| 6e 65 77 69 66 5c 65 6e | 64 63 73 6e 61 6d 65 5c |newif\en|dcsname\|
|000010d0| 69 66 6d 6f 64 75 6c 61 | 20 20 20 20 20 20 20 20 |ifmodula| |
|000010e0| 25 20 53 61 6d 65 20 61 | 73 20 50 61 73 63 61 6c |% Same a|s Pascal|
|000010f0| 20 62 75 74 20 6e 6f 20 | 7b 63 6f 6d 6d 65 6e 74 | but no |{comment|
|00001100| 73 7d 2e 0a 7b 5c 64 65 | 66 5c 6a 75 6e 6b 7b 5c |s}..{\de|f\junk{\|
|00001110| 66 69 5c 66 69 5c 66 69 | 5c 66 69 7d 7d 20 25 20 |fi\fi\fi|\fi}} % |
|00001120| 49 66 20 73 6b 69 70 70 | 69 6e 67 2e 0a 0a 5c 6c |If skipp|ing...\l|
|00001130| 65 74 5c 63 70 72 6f 67 | 65 73 63 5c 72 65 6c 61 |et\cprog|esc\rela|
|00001140| 78 0a 5c 62 65 67 69 6e | 67 72 6f 75 70 20 5c 63 |x.\begin|group \c|
|00001150| 61 74 63 6f 64 65 60 7e | 3d 5c 61 63 74 69 76 65 |atcode`~|=\active|
|00001160| 0a 5c 67 64 65 66 5c 63 | 70 72 6f 67 65 73 63 61 |.\gdef\c|progesca|
|00001170| 70 65 23 31 7b 25 0a 20 | 20 20 20 7b 5c 63 61 74 |pe#1{%. | {\cat|
|00001180| 63 6f 64 65 60 7e 3d 5c | 61 63 74 69 76 65 20 5c |code`~=\|active \|
|00001190| 75 63 63 6f 64 65 60 7e | 3d 60 23 31 20 5c 61 66 |uccode`~|=`#1 \af|
|000011a0| 74 65 72 67 72 6f 75 70 | 5c 63 70 72 6f 67 65 73 |tergroup|\cproges|
|000011b0| 63 6f 6e 74 0a 20 20 20 | 20 20 5c 75 70 70 65 72 |cont. | \upper|
|000011c0| 63 61 73 65 7b 5c 61 66 | 74 65 72 67 72 6f 75 70 |case{\af|tergroup|
|000011d0| 7e 7d 7d 7d 0a 5c 67 64 | 65 66 5c 63 70 72 6f 67 |~}}}.\gd|ef\cprog|
|000011e0| 65 73 63 6f 6e 74 23 31 | 7b 25 0a 20 20 20 20 5c |escont#1|{%. \|
|000011f0| 64 65 66 5c 63 70 72 6f | 67 65 73 63 7b 25 0a 20 |def\cpro|gesc{%. |
|00001200| 20 20 20 20 20 20 20 5c | 6d 61 6b 65 61 63 74 69 | \|makeacti|
|00001210| 76 65 23 31 5c 64 65 66 | 23 31 7b 25 0a 20 20 20 |ve#1\def|#1{%. |
|00001220| 20 20 20 20 20 20 20 20 | 5c 62 65 67 69 6e 67 72 | |\begingr|
|00001230| 6f 75 70 20 5c 63 61 74 | 63 6f 64 65 60 5c 5c 30 |oup \cat|code`\\0|
|00001240| 20 5c 63 61 74 63 6f 64 | 65 60 7b 31 20 5c 63 61 | \catcod|e`{1 \ca|
|00001250| 74 63 6f 64 65 60 7d 32 | 20 5c 63 61 74 63 6f 64 |tcode`}2| \catcod|
|00001260| 65 60 5c 25 31 34 0a 20 | 20 20 20 20 20 20 20 20 |e`\%14. | |
|00001270| 20 20 5c 63 61 74 63 6f | 64 65 60 20 31 30 20 5c | \catco|de` 10 \|
|00001280| 63 6c 69 6e 65 67 72 6f | 75 70 7b 7d 7d 7d 7d 0a |clinegro|up{}}}}.|
|00001290| 5c 65 6e 64 67 72 6f 75 | 70 0a 0a 5c 64 65 66 5c |\endgrou|p..\def\|
|000012a0| 6d 61 6b 65 61 63 74 69 | 76 65 23 31 7b 5c 63 61 |makeacti|ve#1{\ca|
|000012b0| 74 63 6f 64 65 60 23 31 | 3d 5c 61 63 74 69 76 65 |tcode`#1|=\active|
|000012c0| 7d 20 5c 64 65 66 5c 6d | 61 6b 65 6f 74 68 65 72 |} \def\m|akeother|
|000012d0| 23 31 7b 5c 63 61 74 63 | 6f 64 65 60 23 31 3d 31 |#1{\catc|ode`#1=1|
|000012e0| 32 7d 0a 7b 5c 6f 62 65 | 79 73 70 61 63 65 73 5c |2}.{\obe|yspaces\|
|000012f0| 67 64 65 66 5c 61 63 74 | 69 76 65 73 70 61 63 65 |gdef\act|ivespace|
|00001300| 7b 20 7d 20 5c 6f 62 65 | 79 6c 69 6e 65 73 5c 67 |{ } \obe|ylines\g|
|00001310| 64 65 66 5c 61 63 74 69 | 76 65 63 72 7b 5e 5e 4d |def\acti|vecr{^^M|
|00001320| 7d 7d 0a 7b 5c 63 61 74 | 63 6f 64 65 60 7c 3d 5c |}}.{\cat|code`|=\|
|00001330| 63 61 74 63 6f 64 65 60 | 5c 5c 20 5c 6d 61 6b 65 |catcode`|\\ \make|
|00001340| 61 63 74 69 76 65 5c 5c | 20 7c 67 64 65 66 7c 61 |active\\| |gdef|a|
|00001350| 63 74 69 76 65 62 61 63 | 6b 73 6c 61 73 68 7b 5c |ctivebac|kslash{\|
|00001360| 7d 7d 0a 7b 5c 63 61 74 | 63 6f 64 65 39 3d 5c 61 |}}.{\cat|code9=\a|
|00001370| 63 74 69 76 65 20 5c 67 | 64 65 66 5c 61 63 74 69 |ctive \g|def\acti|
|00001380| 76 65 74 61 62 7b 5e 5e | 49 7d 7d 0a 0a 25 20 54 |vetab{^^|I}}..% T|
|00001390| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 67 72 6f |he follo|wing gro|
|000013a0| 75 70 20 6d 61 6b 65 73 | 20 6d 61 6e 79 20 63 68 |up makes| many ch|
|000013b0| 61 72 61 63 74 65 72 73 | 20 61 63 74 69 76 65 2c |aracters| active,|
|000013c0| 20 73 6f 20 74 68 61 74 | 20 74 68 65 69 72 20 63 | so that| their c|
|000013d0| 61 74 63 6f 64 65 73 0a | 25 20 69 6e 20 74 68 65 |atcodes.|% in the|
|000013e0| 20 5c 63 70 72 6f 67 63 | 68 61 72 73 20 6d 61 63 | \cprogc|hars mac|
|000013f0| 72 6f 20 61 72 65 20 61 | 63 74 69 76 65 2c 20 61 |ro are a|ctive, a|
|00001400| 6c 6c 6f 77 69 6e 67 20 | 74 68 65 6d 20 74 6f 20 |llowing |them to |
|00001410| 62 65 20 64 65 66 69 6e | 65 64 2e 20 20 57 65 0a |be defin|ed. We.|
|00001420| 25 20 63 6f 75 6c 64 20 | 61 6c 74 65 72 6e 61 74 |% could |alternat|
|00001430| 69 76 65 6c 79 20 64 65 | 66 69 6e 65 20 6d 6f 72 |ively de|fine mor|
|00001440| 65 20 73 74 75 66 66 20 | 6c 69 6b 65 20 5c 61 63 |e stuff |like \ac|
|00001450| 74 69 76 65 62 61 63 6b | 73 6c 61 73 68 20 61 6e |tiveback|slash an|
|00001460| 64 20 75 73 65 0a 25 20 | 5c 65 78 70 61 6e 64 61 |d use.% |\expanda|
|00001470| 66 74 65 72 20 6f 72 20 | 28 63 61 72 65 66 75 6c |fter or |(careful|
|00001480| 6c 79 29 20 5c 65 64 65 | 66 20 74 6f 20 65 78 70 |ly) \ede|f to exp|
|00001490| 61 6e 64 20 74 68 65 73 | 65 20 69 6e 20 74 68 65 |and thes|e in the|
|000014a0| 20 6d 61 63 72 6f 2e 0a | 5c 62 65 67 69 6e 67 72 | macro..|\begingr|
|000014b0| 6f 75 70 0a 5c 63 61 74 | 63 6f 64 65 60 5b 3d 5c |oup.\cat|code`[=\|
|000014c0| 63 61 74 63 6f 64 65 60 | 7b 20 5c 63 61 74 63 6f |catcode`|{ \catco|
|000014d0| 64 65 60 5d 3d 5c 63 61 | 74 63 6f 64 65 60 7d 0a |de`]=\ca|tcode`}.|
|000014e0| 5c 6d 61 6b 65 61 63 74 | 69 76 65 21 20 5c 6d 61 |\makeact|ive! \ma|
|000014f0| 6b 65 61 63 74 69 76 65 | 22 20 5c 6d 61 6b 65 61 |keactive|" \makea|
|00001500| 63 74 69 76 65 27 20 5c | 6d 61 6b 65 61 63 74 69 |ctive' \|makeacti|
|00001510| 76 65 28 20 5c 6d 61 6b | 65 61 63 74 69 76 65 2a |ve( \mak|eactive*|
|00001520| 20 5c 6d 61 6b 65 61 63 | 74 69 76 65 2d 0a 5c 6d | \makeac|tive-.\m|
|00001530| 61 6b 65 61 63 74 69 76 | 65 2f 20 5c 6d 61 6b 65 |akeactiv|e/ \make|
|00001540| 61 63 74 69 76 65 3c 20 | 5c 6d 61 6b 65 61 63 74 |active< |\makeact|
|00001550| 69 76 65 3e 20 5c 6d 61 | 6b 65 61 63 74 69 76 65 |ive> \ma|keactive|
|00001560| 3f 20 5c 6d 61 6b 65 61 | 63 74 69 76 65 5e 20 5c |? \makea|ctive^ \|
|00001570| 6d 61 6b 65 61 63 74 69 | 76 65 5f 0a 5c 6d 61 6b |makeacti|ve_.\mak|
|00001580| 65 61 63 74 69 76 65 5c | 7b 20 5c 6d 61 6b 65 61 |eactive\|{ \makea|
|00001590| 63 74 69 76 65 7c 20 5c | 6d 61 6b 65 61 63 74 69 |ctive| \|makeacti|
|000015a0| 76 65 5c 7d 0a 5c 67 64 | 65 66 5c 61 63 74 69 76 |ve\}.\gd|ef\activ|
|000015b0| 65 73 74 61 72 5b 2a 5d | 0a 5c 67 64 65 66 5c 63 |estar[*]|.\gdef\c|
|000015c0| 70 72 6f 67 63 68 61 72 | 73 5b 25 0a 20 20 20 20 |progchar|s[%. |
|000015d0| 5c 6d 61 6b 65 6f 74 68 | 65 72 23 23 5c 6d 61 6b |\makeoth|er##\mak|
|000015e0| 65 6f 74 68 65 72 24 5c | 6d 61 6b 65 6f 74 68 65 |eother$\|makeothe|
|000015f0| 72 26 5c 6d 61 6b 65 6f | 74 68 65 72 5c 25 5c 6d |r&\makeo|ther\%\m|
|00001600| 61 6b 65 6f 74 68 65 72 | 5e 25 0a 20 20 20 20 5c |akeother|^%. \|
|00001610| 6d 61 6b 65 61 63 74 69 | 76 65 22 5c 6d 61 6b 65 |makeacti|ve"\make|
|00001620| 61 63 74 69 76 65 27 5c | 6d 61 6b 65 61 63 74 69 |active'\|makeacti|
|00001630| 76 65 2a 5c 6d 61 6b 65 | 61 63 74 69 76 65 3f 5c |ve*\make|active?\|
|00001640| 6d 61 6b 65 61 63 74 69 | 76 65 7b 5c 6d 61 6b 65 |makeacti|ve{\make|
|00001650| 61 63 74 69 76 65 7d 25 | 0a 20 20 20 20 5c 6d 61 |active}%|. \ma|
|00001660| 6b 65 61 63 74 69 76 65 | 7d 5c 6d 61 6b 65 61 63 |keactive|}\makeac|
|00001670| 74 69 76 65 5c 5c 5c 6d | 61 6b 65 61 63 74 69 76 |tive\\\m|akeactiv|
|00001680| 65 5f 5c 65 78 70 61 6e | 64 61 66 74 65 72 5c 6d |e_\expan|dafter\m|
|00001690| 61 6b 65 61 63 74 69 76 | 65 5c 61 63 74 69 76 65 |akeactiv|e\active|
|000016a0| 74 61 62 25 0a 20 20 20 | 20 5c 6d 61 6b 65 61 63 |tab%. | \makeac|
|000016b0| 74 69 76 65 21 5c 6d 61 | 6b 65 61 63 74 69 76 65 |tive!\ma|keactive|
|000016c0| 3c 5c 6d 61 6b 65 61 63 | 74 69 76 65 3e 5c 6d 61 |<\makeac|tive>\ma|
|000016d0| 6b 65 61 63 74 69 76 65 | 2d 5c 6d 61 6b 65 61 63 |keactive|-\makeac|
|000016e0| 74 69 76 65 7c 25 0a 20 | 20 20 20 5c 69 66 63 70 |tive|%. | \ifcp|
|000016f0| 72 6f 67 70 61 69 72 73 | 0a 20 20 20 20 20 20 5c |rogpairs|. \|
|00001700| 64 65 66 21 23 23 31 5b | 5c 69 66 78 3d 23 23 31 |def!##1[|\ifx=##1|
|00001710| 24 5c 6e 65 24 5c 65 6c | 73 65 5c 73 74 72 69 6e |$\ne$\el|se\strin|
|00001720| 67 21 5c 6e 75 6c 6c 23 | 23 31 5c 66 69 5d 25 0a |g!\null#|#1\fi]%.|
|00001730| 20 20 20 20 20 20 5c 64 | 65 66 2d 23 23 31 5b 5c | \d|ef-##1[\|
|00001740| 69 66 78 3e 23 23 31 24 | 5c 72 69 67 68 74 61 72 |ifx>##1$|\rightar|
|00001750| 72 6f 77 24 5c 65 6c 73 | 65 24 5c 73 74 72 69 6e |row$\els|e$\strin|
|00001760| 67 2d 24 23 23 31 5c 66 | 69 5d 25 0a 20 20 20 20 |g-$##1\f|i]%. |
|00001770| 20 20 25 20 57 65 20 75 | 73 65 20 5c 61 66 74 65 | % We u|se \afte|
|00001780| 72 67 72 6f 75 70 20 69 | 6e 20 3c 20 61 6e 64 20 |rgroup i|n < and |
|00001790| 3e 20 74 6f 20 64 65 61 | 6c 20 77 69 74 68 20 74 |> to dea|l with t|
|000017a0| 68 65 20 66 61 63 74 20 | 74 68 61 74 20 23 31 20 |he fact |that #1 |
|000017b0| 6d 69 67 68 74 0a 20 20 | 20 20 20 20 25 20 69 74 |might. | % it|
|000017c0| 73 65 6c 66 20 65 78 61 | 6d 69 6e 65 20 74 68 65 |self exa|mine the|
|000017d0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 63 68 61 72 61 | followi|ng chara|
|000017e0| 63 74 65 72 2e 0a 20 20 | 20 20 20 20 5c 64 65 66 |cter.. | \def|
|000017f0| 3c 23 23 31 5b 5b 24 5c | 69 66 78 3c 23 23 31 5c |<##1[[$\|ifx<##1\|
|00001800| 6c 6c 24 5c 65 6c 73 65 | 5c 69 66 78 3d 23 23 31 |ll$\else|\ifx=##1|
|00001810| 5c 6c 65 24 5c 65 6c 73 | 65 0a 20 20 20 20 20 20 |\le$\els|e. |
|00001820| 20 20 5c 69 66 78 3e 23 | 23 31 5c 69 66 70 61 73 | \ifx>#|#1\ifpas|
|00001830| 63 61 6c 5c 6e 65 24 5c | 65 6c 73 65 5c 73 74 72 |cal\ne$\|else\str|
|00001840| 69 6e 67 3c 24 5c 61 66 | 74 65 72 67 72 6f 75 70 |ing<$\af|tergroup|
|00001850| 3e 5c 66 69 0a 20 20 20 | 20 20 20 20 20 5c 65 6c |>\fi. | \el|
|00001860| 73 65 20 5c 73 74 72 69 | 6e 67 3c 24 5c 61 66 74 |se \stri|ng<$\aft|
|00001870| 65 72 67 72 6f 75 70 23 | 23 31 5c 66 69 5c 66 69 |ergroup#|#1\fi\fi|
|00001880| 5c 66 69 5d 5d 25 0a 20 | 20 20 20 20 20 5c 64 65 |\fi]]%. | \de|
|00001890| 66 3e 23 23 31 5b 5b 24 | 5c 69 66 78 3e 23 23 31 |f>##1[[$|\ifx>##1|
|000018a0| 5c 67 67 24 5c 65 6c 73 | 65 5c 69 66 78 3d 23 23 |\gg$\els|e\ifx=##|
|000018b0| 31 5c 67 65 24 5c 65 6c | 73 65 0a 20 20 20 20 20 |1\ge$\el|se. |
|000018c0| 20 20 20 5c 73 74 72 69 | 6e 67 3e 24 5c 61 66 74 | \stri|ng>$\aft|
|000018d0| 65 72 67 72 6f 75 70 23 | 23 31 5c 66 69 5c 66 69 |ergroup#|#1\fi\fi|
|000018e0| 5d 5d 25 0a 20 20 20 20 | 5c 65 6c 73 65 20 5c 64 |]]%. |\else \d|
|000018f0| 65 66 21 5b 5c 73 74 72 | 69 6e 67 21 5c 6e 75 6c |ef![\str|ing!\nul|
|00001900| 6c 5d 25 20 41 76 6f 69 | 64 20 21 60 20 6c 69 67 |l]% Avoi|d !` lig|
|00001910| 61 74 75 72 65 2e 0a 20 | 20 20 20 20 20 5c 64 65 |ature.. | \de|
|00001920| 66 2d 5b 24 5c 73 74 72 | 69 6e 67 2d 24 5d 5c 64 |f-[$\str|ing-$]\d|
|00001930| 65 66 3c 5b 24 5c 73 74 | 72 69 6e 67 3c 24 5d 5c |ef<[$\st|ring<$]\|
|00001940| 64 65 66 3e 5b 24 5c 73 | 74 72 69 6e 67 3e 24 5d |def>[$\s|tring>$]|
|00001950| 25 0a 20 20 20 20 5c 66 | 69 0a 20 20 20 20 5c 64 |%. \f|i. \d|
|00001960| 65 66 3f 5b 5c 73 74 72 | 69 6e 67 3f 5c 6e 75 6c |ef?[\str|ing?\nul|
|00001970| 6c 5d 25 20 41 76 6f 69 | 64 20 3f 60 20 6c 69 67 |l]% Avoi|d ?` lig|
|00001980| 61 74 75 72 65 2e 0a 20 | 20 20 20 5c 64 65 66 22 |ature.. | \def"|
|00001990| 5b 5c 63 71 75 6f 74 65 | 22 5b 5c 74 74 5c 73 74 |[\cquote|"[\tt\st|
|000019a0| 72 69 6e 67 22 5d 5d 5c | 64 65 66 27 5b 5c 63 71 |ring"]]\|def'[\cq|
|000019b0| 75 6f 74 65 27 5b 5c 74 | 74 5c 74 74 71 75 6f 74 |uote'[\t|t\ttquot|
|000019c0| 65 5d 5d 5c 64 65 66 2a | 5b 24 5c 73 74 72 69 6e |e]]\def*|[$\strin|
|000019d0| 67 2a 24 5d 25 0a 20 20 | 20 20 5c 69 66 6d 6f 64 |g*$]%. | \ifmod|
|000019e0| 75 6c 61 20 5c 70 61 73 | 63 61 6c 74 72 75 65 20 |ula \pas|caltrue |
|000019f0| 5c 66 69 20 20 20 25 20 | 45 78 63 65 70 74 20 74 |\fi % |Except t|
|00001a00| 68 61 74 20 7b 2e 2e 2e | 7d 20 69 73 20 75 73 65 |hat {...|} is use|
|00001a10| 64 20 66 6f 72 20 73 65 | 74 73 2e 0a 20 20 20 20 |d for se|ts.. |
|00001a20| 5c 69 66 70 61 73 63 61 | 6c 0a 20 20 20 20 20 20 |\ifpasca|l. |
|00001a30| 5c 69 66 6d 6f 64 75 6c | 61 20 5c 64 75 6c 6c 6c |\ifmodul|a \dulll|
|00001a40| 62 72 61 63 65 20 5c 65 | 6c 73 65 0a 20 20 20 20 |brace \e|lse. |
|00001a50| 20 20 20 20 5c 64 65 66 | 7b 5b 5c 62 65 67 69 6e | \def|{[\begin|
|00001a60| 67 72 6f 75 70 20 5c 64 | 75 6c 6c 6c 62 72 61 63 |group \d|ulllbrac|
|00001a70| 65 7b 5c 63 63 6f 6d 6d | 65 6e 74 73 65 74 75 70 |e{\ccomm|entsetup|
|00001a80| 5c 64 65 66 7d 5b 5c 2f | 5c 65 6e 64 67 72 6f 75 |\def}[\/|\endgrou|
|00001a90| 70 20 7d 5d 5d 25 0a 20 | 20 20 20 20 20 5c 66 69 |p }]]%. | \fi|
|00001aa0| 20 5c 6d 61 6b 65 61 63 | 74 69 76 65 28 5c 6c 65 | \makeac|tive(\le|
|00001ab0| 74 28 3d 5c 70 61 73 63 | 61 6c 63 6f 6d 6d 65 6e |t(=\pasc|alcommen|
|00001ac0| 74 20 5c 6d 61 6b 65 61 | 63 74 69 76 65 5e 5c 64 |t \makea|ctive^\d|
|00001ad0| 65 66 5e 5b 24 5c 75 70 | 61 72 72 6f 77 24 5d 25 |ef^[$\up|arrow$]%|
|00001ae0| 0a 20 20 20 20 5c 65 6c | 73 65 20 5c 64 75 6c 6c |. \el|se \dull|
|00001af0| 6c 62 72 61 63 65 5c 6d | 61 6b 65 61 63 74 69 76 |lbrace\m|akeactiv|
|00001b00| 65 2f 5c 6c 65 74 2f 3d | 5c 63 63 6f 6d 6d 65 6e |e/\let/=|\ccommen|
|00001b10| 74 0a 20 20 20 20 5c 66 | 69 0a 20 20 20 20 5c 64 |t. \f|i. \d|
|00001b20| 65 66 7d 5b 24 5c 7d 24 | 5d 5c 64 65 66 7c 5b 24 |ef}[$\}$|]\def|[$|
|00001b30| 5c 73 74 72 69 6e 67 7c | 24 5d 5c 64 65 66 7e 5b |\string||$]\def~[|
|00001b40| 24 5c 73 69 6d 24 5d 5c | 6c 65 74 5f 5c 5f 25 0a |$\sim$]\|let_\_%.|
|00001b50| 20 20 20 20 5c 65 78 70 | 61 6e 64 61 66 74 65 72 | \exp|andafter|
|00001b60| 5c 64 65 66 5c 61 63 74 | 69 76 65 62 61 63 6b 73 |\def\act|ivebacks|
|00001b70| 6c 61 73 68 5b 24 5c 62 | 61 63 6b 73 6c 61 73 68 |lash[$\b|ackslash|
|00001b80| 24 5d 25 0a 20 20 20 20 | 5c 6f 62 65 79 73 70 61 |$]%. |\obeyspa|
|00001b90| 63 65 73 20 5c 65 78 70 | 61 6e 64 61 66 74 65 72 |ces \exp|andafter|
|00001ba0| 5c 64 65 66 5c 61 63 74 | 69 76 65 73 70 61 63 65 |\def\act|ivespace|
|00001bb0| 5b 5c 6c 65 61 76 65 76 | 6d 6f 64 65 5c 73 70 61 |[\leavev|mode\spa|
|00001bc0| 63 65 5d 25 0a 20 20 20 | 20 5c 65 78 70 61 6e 64 |ce]%. | \expand|
|00001bd0| 61 66 74 65 72 5c 64 65 | 66 5c 61 63 74 69 76 65 |after\de|f\active|
|00001be0| 74 61 62 5b 5c 20 5c 20 | 5c 20 5c 20 5d 25 0a 20 |tab[\ \ |\ \ ]%. |
|00001bf0| 20 20 20 5c 6f 62 65 79 | 6c 69 6e 65 73 20 5c 65 | \obey|lines \e|
|00001c00| 78 70 61 6e 64 61 66 74 | 65 72 5c 64 65 66 5c 61 |xpandaft|er\def\a|
|00001c10| 63 74 69 76 65 63 72 5b | 5c 73 74 72 75 74 5c 70 |ctivecr[|\strut\p|
|00001c20| 61 72 5d 5d 0a 5c 67 64 | 65 66 5c 63 70 72 6f 67 |ar]].\gd|ef\cprog|
|00001c30| 61 72 67 5b 5c 65 78 70 | 61 6e 64 61 66 74 65 72 |arg[\exp|andafter|
|00001c40| 5c 64 65 66 5c 61 63 74 | 69 76 65 62 61 63 6b 73 |\def\act|ivebacks|
|00001c50| 6c 61 73 68 23 23 31 5b | 5c 69 66 78 23 23 31 65 |lash##1[|\ifx##1e|
|00001c60| 5c 6c 65 74 5c 6e 65 78 | 74 5c 63 70 72 6f 67 65 |\let\nex|t\cproge|
|00001c70| 6e 64 0a 20 20 20 20 5c | 65 6c 73 65 24 5c 62 61 |nd. \|else$\ba|
|00001c80| 63 6b 73 6c 61 73 68 24 | 5c 6c 65 74 5c 6e 65 78 |ckslash$|\let\nex|
|00001c90| 74 23 23 31 5c 66 69 5c | 6e 65 78 74 5d 5c 65 61 |t##1\fi\|next]\ea|
|00001ca0| 74 63 72 5d 0a 5c 67 64 | 65 66 5c 63 70 72 6f 67 |tcr].\gd|ef\cprog|
|00001cb0| 65 6e 64 20 6e 64 23 31 | 7b 63 70 72 6f 67 23 32 |end nd#1|{cprog#2|
|00001cc0| 7d 5b 5c 65 6e 64 63 70 | 72 6f 67 61 72 67 5d 20 |}[\endcp|rogarg] |
|00001cd0| 20 20 20 20 20 25 20 23 | 31 20 63 61 6e 20 62 65 | % #|1 can be|
|00001ce0| 20 73 70 61 63 65 2c 20 | 23 32 20 2a 2e 0a 5c 67 | space, |#2 *..\g|
|00001cf0| 64 65 66 5c 64 75 6c 6c | 6c 62 72 61 63 65 5b 5c |def\dull|lbrace[\|
|00001d00| 64 65 66 7b 5b 24 5c 7b | 24 5d 5d 0a 5c 65 6e 64 |def{[$\{|$]].\end|
|00001d10| 67 72 6f 75 70 0a 0a 5c | 63 68 61 72 64 65 66 5c |group..\|chardef\|
|00001d20| 74 74 71 75 6f 74 65 3d | 31 33 20 20 20 20 20 25 |ttquote=|13 %|
|00001d30| 20 55 6e 64 69 72 65 63 | 74 65 64 20 73 69 6e 67 | Undirec|ted sing|
|00001d40| 6c 65 20 71 75 6f 74 65 | 2e 0a 5c 62 65 67 69 6e |le quote|..\begin|
|00001d50| 67 72 6f 75 70 20 5c 6d | 61 6b 65 61 63 74 69 76 |group \m|akeactiv|
|00001d60| 65 22 20 5c 6d 61 6b 65 | 61 63 74 69 76 65 27 20 |e" \make|active' |
|00001d70| 5c 6d 61 6b 65 61 63 74 | 69 76 65 21 0a 5c 67 64 |\makeact|ive!.\gd|
|00001d80| 65 66 5c 63 71 75 6f 74 | 65 23 31 23 32 7b 25 20 |ef\cquot|e#1#2{% |
|00001d90| 23 31 20 69 73 20 74 68 | 65 20 71 75 6f 74 65 2c |#1 is th|e quote,|
|00001da0| 20 22 20 6f 72 20 27 2c | 20 23 32 20 68 6f 77 20 | " or ',| #2 how |
|00001db0| 74 6f 20 73 65 74 20 69 | 74 2e 0a 20 20 20 20 5c |to set i|t.. \|
|00001dc0| 62 65 67 69 6e 67 72 6f | 75 70 20 23 32 5c 63 73 |begingro|up #2\cs|
|00001dd0| 74 72 69 6e 67 66 6f 6e | 74 20 5c 6d 61 6b 65 61 |tringfon|t \makea|
|00001de0| 63 74 69 76 65 5c 5c 25 | 0a 20 20 20 20 5c 69 66 |ctive\\%|. \if|
|00001df0| 70 61 73 63 61 6c 20 5c | 6d 61 6b 65 6f 74 68 65 |pascal \|makeothe|
|00001e00| 72 5c 5c 5c 6d 61 6b 65 | 6f 74 68 65 72 5e 25 0a |r\\\make|other^%.|
|00001e10| 20 20 20 20 5c 65 6c 73 | 65 20 5c 65 78 70 61 6e | \els|e \expan|
|00001e20| 64 61 66 74 65 72 5c 6c | 65 74 5c 61 63 74 69 76 |dafter\l|et\activ|
|00001e30| 65 62 61 63 6b 73 6c 61 | 73 68 5c 71 75 6f 74 65 |ebacksla|sh\quote|
|00001e40| 62 61 63 6b 73 6c 61 73 | 68 0a 20 20 20 20 5c 66 |backslas|h. \f|
|00001e50| 69 0a 20 20 20 20 5c 65 | 78 70 61 6e 64 61 66 74 |i. \e|xpandaft|
|00001e60| 65 72 5c 65 64 65 66 5c | 61 63 74 69 76 65 73 70 |er\edef\|activesp|
|00001e70| 61 63 65 7b 5c 69 66 63 | 70 72 6f 67 74 74 73 70 |ace{\ifc|progttsp|
|00001e80| 61 63 65 5c 63 68 61 72 | 60 5c 20 5c 65 6c 73 65 |ace\char|`\ \else|
|00001e90| 5c 20 5c 66 69 7d 25 0a | 20 20 20 20 5c 65 78 70 |\ \fi}%.| \exp|
|00001ea0| 61 6e 64 61 66 74 65 72 | 5c 6c 65 74 5c 61 63 74 |andafter|\let\act|
|00001eb0| 69 76 65 63 72 3d 5c 75 | 6e 63 6c 6f 73 65 64 73 |ivecr=\u|ncloseds|
|00001ec0| 74 72 69 6e 67 0a 20 20 | 20 20 5c 64 65 66 21 7b |tring. | \def!{|
|00001ed0| 5c 73 74 72 69 6e 67 21 | 5c 6e 75 6c 6c 7d 25 20 |\string!|\null}% |
|00001ee0| 4e 6f 20 21 60 20 6c 69 | 67 61 74 75 72 65 2e 0a |No !` li|gature..|
|00001ef0| 20 20 20 20 5c 6d 61 6b | 65 6f 74 68 65 72 2a 5c | \mak|eother*\|
|00001f00| 6d 61 6b 65 6f 74 68 65 | 72 2d 5c 6d 61 6b 65 6f |makeothe|r-\makeo|
|00001f10| 74 68 65 72 2f 5c 6d 61 | 6b 65 6f 74 68 65 72 3c |ther/\ma|keother<|
|00001f20| 5c 6d 61 6b 65 6f 74 68 | 65 72 3e 25 0a 20 20 20 |\makeoth|er>%. |
|00001f30| 20 5c 6d 61 6b 65 6f 74 | 68 65 72 5f 5c 6d 61 6b | \makeot|her_\mak|
|00001f40| 65 6f 74 68 65 72 5c 7b | 5c 6d 61 6b 65 6f 74 68 |eother\{|\makeoth|
|00001f50| 65 72 5c 7d 5c 6d 61 6b | 65 6f 74 68 65 72 7c 5c |er\}\mak|eother|\|
|00001f60| 6d 61 6b 65 6f 74 68 65 | 72 7e 25 0a 20 20 20 20 |makeothe|r~%. |
|00001f70| 5c 69 66 78 22 23 31 5c | 6c 65 74 27 5c 74 74 71 |\ifx"#1\|let'\ttq|
|00001f80| 75 6f 74 65 20 5c 65 6c | 73 65 20 5c 6d 61 6b 65 |uote \el|se \make|
|00001f90| 6f 74 68 65 72 22 5c 66 | 69 0a 20 20 20 20 5c 64 |other"\f|i. \d|
|00001fa0| 65 66 23 31 7b 23 32 5c | 65 6e 64 67 72 6f 75 70 |ef#1{#2\|endgroup|
|00001fb0| 7d 7d 0a 5c 65 6e 64 67 | 72 6f 75 70 0a 5c 63 73 |}}.\endg|roup.\cs|
|00001fc0| 6e 61 6d 65 20 6e 65 77 | 68 65 6c 70 5c 65 6e 64 |name new|help\end|
|00001fd0| 63 73 6e 61 6d 65 5c 63 | 70 72 6f 67 75 6e 63 6c |csname\c|proguncl|
|00001fe0| 6f 73 65 64 73 74 72 7b | 25 0a 41 20 73 74 72 69 |osedstr{|%.A stri|
|00001ff0| 6e 67 20 6f 72 20 63 68 | 61 72 61 63 74 65 72 20 |ng or ch|aracter |
|00002000| 63 6f 6e 73 74 61 6e 74 | 20 65 61 72 6c 69 65 72 |constant| earlier|
|00002010| 20 69 6e 20 74 68 65 20 | 6c 69 6e 65 20 77 61 73 | in the |line was|
|00002020| 20 75 6e 63 6c 6f 73 65 | 64 2e 5e 5e 4a 53 6f 0a | unclose|d.^^JSo.|
|00002030| 49 27 6d 20 63 6c 6f 73 | 69 6e 67 20 69 74 20 6e |I'm clos|ing it n|
|00002040| 6f 77 2e 7d 0a 5c 64 65 | 66 5c 75 6e 63 6c 6f 73 |ow.}.\de|f\unclos|
|00002050| 65 64 73 74 72 69 6e 67 | 7b 25 0a 20 20 20 20 5c |edstring|{%. \|
|00002060| 65 73 63 61 70 65 63 68 | 61 72 2d 31 25 0a 20 20 |escapech|ar-1%. |
|00002070| 20 20 5c 65 72 72 68 65 | 6c 70 5c 63 70 72 6f 67 | \errhe|lp\cprog|
|00002080| 75 6e 63 6c 6f 73 65 64 | 73 74 72 0a 20 20 20 20 |unclosed|str. |
|00002090| 5c 65 72 72 6d 65 73 73 | 61 67 65 7b 55 6e 63 6c |\errmess|age{Uncl|
|000020a0| 6f 73 65 64 20 73 74 72 | 69 6e 67 7d 25 0a 20 20 |osed str|ing}%. |
|000020b0| 20 20 5c 65 6e 64 67 72 | 6f 75 70 7d 0a 5c 6e 65 | \endgr|oup}.\ne|
|000020c0| 77 6c 69 6e 65 63 68 61 | 72 3d 60 5e 5e 4a 0a 5c |wlinecha|r=`^^J.\|
|000020d0| 64 65 66 5c 71 75 6f 74 | 65 62 61 63 6b 73 6c 61 |def\quot|ebacksla|
|000020e0| 73 68 23 31 7b 5c 63 68 | 61 72 60 5c 5c 25 0a 20 |sh#1{\ch|ar`\\%. |
|000020f0| 20 20 20 5c 65 78 70 61 | 6e 64 61 66 74 65 72 5c | \expa|ndafter\|
|00002100| 69 66 78 5c 61 63 74 69 | 76 65 63 72 23 31 5c 73 |ifx\acti|vecr#1\s|
|00002110| 74 72 75 74 5c 70 61 72 | 0a 20 20 20 20 5c 65 6c |trut\par|. \el|
|00002120| 73 65 5c 69 66 27 5c 6e | 6f 65 78 70 61 6e 64 23 |se\if'\n|oexpand#|
|00002130| 31 5c 74 74 71 75 6f 74 | 65 5c 65 6c 73 65 5c 73 |1\ttquot|e\else\s|
|00002140| 74 72 69 6e 67 23 31 5c | 66 69 5c 66 69 7d 0a 0a |tring#1\|fi\fi}..|
|00002150| 25 20 49 6e 20 61 20 63 | 6f 6d 6d 65 6e 74 2c 20 |% In a c|omment, |
|00002160| 77 65 20 73 68 72 69 6e | 6b 20 74 68 65 20 77 69 |we shrin|k the wi|
|00002170| 64 74 68 20 6f 66 20 74 | 68 65 20 6f 70 65 6e 69 |dth of t|he openi|
|00002180| 6e 67 20 2f 20 74 6f 20 | 74 68 61 74 20 6f 66 20 |ng / to |that of |
|00002190| 61 20 73 70 61 63 65 20 | 73 6f 0a 25 20 74 68 61 |a space |so.% tha|
|000021a0| 74 20 74 68 65 20 73 74 | 61 72 73 20 69 6e 20 6d |t the st|ars in m|
|000021b0| 75 6c 74 69 6c 69 6e 65 | 20 63 6f 6d 6d 65 6e 74 |ultiline| comment|
|000021c0| 73 20 77 69 6c 6c 20 6c | 69 6e 65 20 75 70 2e 20 |s will l|ine up. |
|000021d0| 20 57 65 20 61 6c 73 6f | 20 73 68 72 69 6e 6b 20 | We also| shrink |
|000021e0| 74 68 65 0a 25 20 63 6c | 6f 73 69 6e 67 20 2a 20 |the.% cl|osing * |
|000021f0| 66 6f 72 20 73 79 6d 6d | 65 74 72 79 2c 20 62 75 |for symm|etry, bu|
|00002200| 74 20 6e 6f 74 20 69 6e | 20 50 61 73 63 61 6c 20 |t not in| Pascal |
|00002210| 77 68 65 72 65 20 69 74 | 20 6c 6f 6f 6b 73 20 6e |where it| looks n|
|00002220| 61 73 74 79 2e 0a 25 20 | 4e 6f 74 65 20 74 68 61 |asty..% |Note tha|
|00002230| 74 20 5c 65 6e 64 7b 63 | 70 72 6f 67 7d 20 69 73 |t \end{c|prog} is|
|00002240| 20 6e 6f 74 20 72 65 63 | 6f 67 6e 69 73 65 64 20 | not rec|ognised |
|00002250| 69 6e 20 73 74 72 69 6e | 67 73 20 6f 72 20 63 6f |in strin|gs or co|
|00002260| 6d 6d 65 6e 74 73 2e 0a | 5c 64 65 66 5c 73 70 61 |mments..|\def\spa|
|00002270| 63 65 62 6f 78 23 31 7b | 5c 6c 65 61 76 65 76 6d |cebox#1{|\leavevm|
|00002280| 6f 64 65 20 5c 68 62 6f | 78 20 74 6f 20 5c 73 70 |ode \hbo|x to \sp|
|00002290| 61 63 65 73 6b 69 70 7b | 23 31 5c 68 73 73 7d 7d |aceskip{|#1\hss}}|
|000022a0| 0a 0a 5c 62 65 67 69 6e | 67 72 6f 75 70 20 5c 6d |..\begin|group \m|
|000022b0| 61 6b 65 61 63 74 69 76 | 65 2a 20 5c 6d 61 6b 65 |akeactiv|e* \make|
|000022c0| 61 63 74 69 76 65 21 20 | 5c 6d 61 6b 65 6f 74 68 |active! |\makeoth|
|000022d0| 65 72 2f 0a 5c 67 64 65 | 66 5c 63 63 6f 6d 6d 65 |er/.\gde|f\ccomme|
|000022e0| 6e 74 73 65 74 75 70 7b | 5c 63 63 6f 6d 6d 65 6e |ntsetup{|\ccommen|
|000022f0| 74 66 6f 6e 74 20 5c 6d | 61 6b 65 6f 74 68 65 72 |tfont \m|akeother|
|00002300| 2d 5c 6d 61 6b 65 6f 74 | 68 65 72 27 5c 6d 61 6b |-\makeot|her'\mak|
|00002310| 65 6f 74 68 65 72 22 5c | 6d 61 6b 65 6f 74 68 65 |eother"\|makeothe|
|00002320| 72 2f 25 0a 20 20 20 20 | 20 5c 64 65 66 21 7b 5c |r/%. | \def!{\|
|00002330| 73 74 72 69 6e 67 21 5c | 6e 75 6c 6c 7d 5c 65 78 |string!\|null}\ex|
|00002340| 70 61 6e 64 61 66 74 65 | 72 5c 64 65 66 5c 61 63 |pandafte|r\def\ac|
|00002350| 74 69 76 65 62 61 63 6b | 73 6c 61 73 68 7b 24 5c |tiveback|slash{$\|
|00002360| 62 61 63 6b 73 6c 61 73 | 68 24 7d 7d 0a 5c 67 64 |backslas|h$}}.\gd|
|00002370| 65 66 5c 63 63 6f 6d 6d | 65 6e 74 23 31 7b 25 0a |ef\ccomm|ent#1{%.|
|00002380| 20 20 20 20 20 5c 6c 65 | 74 5c 6e 65 78 74 5c 72 | \le|t\next\r|
|00002390| 65 6c 61 78 0a 20 20 20 | 20 20 5c 69 66 78 23 31 |elax. | \ifx#1|
|000023a0| 2a 5c 62 67 72 6f 75 70 | 20 5c 63 63 6f 6d 6d 65 |*\bgroup| \ccomme|
|000023b0| 6e 74 73 65 74 75 70 0a | 20 20 20 20 20 20 20 5c |ntsetup.| \|
|000023c0| 73 70 61 63 65 62 6f 78 | 7b 5c 63 74 65 78 74 66 |spacebox|{\ctextf|
|000023d0| 6f 6e 74 5c 73 74 72 69 | 6e 67 2f 7d 2a 25 0a 20 |ont\stri|ng/}*%. |
|000023e0| 20 20 20 20 20 20 5c 6d | 61 6b 65 61 63 74 69 76 | \m|akeactiv|
|000023f0| 65 2a 5c 64 65 66 2a 7b | 5c 63 6f 6d 6d 65 6e 74 |e*\def*{|\comment|
|00002400| 73 74 61 72 2f 7d 25 0a | 20 20 20 20 20 5c 65 6c |star/}%.| \el|
|00002410| 73 65 5c 69 66 5c 6e 6f | 65 78 70 61 6e 64 23 31 |se\if\no|expand#1|
|00002420| 2f 5c 62 65 67 69 6e 67 | 72 6f 75 70 20 2f 2f 5c |/\beging|roup //\|
|00002430| 63 63 6f 6d 6d 65 6e 74 | 73 65 74 75 70 20 5c 63 |ccomment|setup \c|
|00002440| 6c 69 6e 65 67 72 6f 75 | 70 5c 61 63 74 69 76 65 |linegrou|p\active|
|00002450| 63 72 0a 20 20 20 20 20 | 5c 65 6c 73 65 20 5c 73 |cr. |\else \s|
|00002460| 74 72 69 6e 67 2f 5c 6c | 65 74 5c 6e 65 78 74 23 |tring/\l|et\next#|
|00002470| 31 25 0a 20 20 20 20 20 | 5c 66 69 5c 66 69 5c 6e |1%. |\fi\fi\n|
|00002480| 65 78 74 7d 0a 5c 67 64 | 65 66 5c 70 61 73 63 61 |ext}.\gd|ef\pasca|
|00002490| 6c 63 6f 6d 6d 65 6e 74 | 23 31 7b 25 0a 20 20 20 |lcomment|#1{%. |
|000024a0| 20 20 5c 69 66 78 23 31 | 2a 5c 62 67 72 6f 75 70 | \ifx#1|*\bgroup|
|000024b0| 20 5c 63 63 6f 6d 6d 65 | 6e 74 73 65 74 75 70 20 | \ccomme|ntsetup |
|000024c0| 5c 6c 65 74 5c 6e 65 78 | 74 5c 64 75 6c 6c 6c 62 |\let\nex|t\dulllb|
|000024d0| 72 61 63 65 20 5c 6d 61 | 6b 65 6f 74 68 65 72 28 |race \ma|keother(|
|000024e0| 25 0a 20 20 20 20 20 20 | 20 5c 73 70 61 63 65 62 |%. | \spaceb|
|000024f0| 6f 78 7b 5c 63 74 65 78 | 74 66 6f 6e 74 5c 73 74 |ox{\ctex|tfont\st|
|00002500| 72 69 6e 67 28 7d 2a 5c | 6d 61 6b 65 61 63 74 69 |ring(}*\|makeacti|
|00002510| 76 65 2a 5c 64 65 66 2a | 7b 5c 63 6f 6d 6d 65 6e |ve*\def*|{\commen|
|00002520| 74 73 74 61 72 29 7d 25 | 0a 20 20 20 20 20 5c 65 |tstar)}%|. \e|
|00002530| 6c 73 65 20 28 5c 6c 65 | 74 5c 6e 65 78 74 23 31 |lse (\le|t\next#1|
|00002540| 5c 66 69 20 5c 6e 65 78 | 74 7d 0a 5c 6f 62 65 79 |\fi \nex|t}.\obey|
|00002550| 6c 69 6e 65 73 20 5c 6c | 6f 6e 67 5c 67 64 65 66 |lines \l|ong\gdef|
|00002560| 5c 63 6c 69 6e 65 67 72 | 6f 75 70 23 31 23 32 5e |\clinegr|oup#1#2^|
|00002570| 5e 4d 7b 23 32 5c 65 6e | 64 67 72 6f 75 70 23 31 |^M{#2\en|dgroup#1|
|00002580| 7d 25 0a 5c 65 6e 64 67 | 72 6f 75 70 0a 5c 64 65 |}%.\endg|roup.\de|
|00002590| 66 5c 63 6f 6d 6d 65 6e | 74 73 74 61 72 23 31 23 |f\commen|tstar#1#|
|000025a0| 32 7b 25 0a 20 20 20 20 | 7b 5c 69 66 23 31 5c 6e |2{%. |{\if#1\n|
|000025b0| 6f 65 78 70 61 6e 64 23 | 32 5c 65 67 72 6f 75 70 |oexpand#|2\egroup|
|000025c0| 20 5c 69 66 70 61 73 63 | 61 6c 5c 65 6c 73 65 5c | \ifpasc|al\else\|
|000025d0| 61 66 74 65 72 67 72 6f | 75 70 5c 73 70 61 63 65 |aftergro|up\space|
|000025e0| 62 6f 78 5c 66 69 5c 66 | 69 7d 7b 24 2a 24 7d 23 |box\fi\f|i}{$*$}#|
|000025f0| 32 7d 0a 0a 25 20 57 65 | 20 75 73 75 61 6c 6c 79 |2}..% We| usually|
|00002600| 20 68 61 76 65 20 61 6e | 20 61 63 74 69 76 65 20 | have an| active |
|00002610| 5e 5e 4d 20 61 66 74 65 | 72 20 5c 63 70 72 6f 67 |^^M afte|r \cprog|
|00002620| 20 6f 72 20 5c 62 65 67 | 69 6e 7b 63 70 72 6f 67 | or \beg|in{cprog|
|00002630| 7d 2e 0a 5c 64 65 66 5c | 65 61 74 63 72 23 31 7b |}..\def\|eatcr#1{|
|00002640| 7b 5c 65 78 70 61 6e 64 | 61 66 74 65 72 5c 69 66 |{\expand|after\if|
|00002650| 78 5c 61 63 74 69 76 65 | 63 72 23 31 5c 65 6c 73 |x\active|cr#1\els|
|00002660| 65 5c 61 66 74 65 72 67 | 72 6f 75 70 23 31 5c 66 |e\afterg|roup#1\f|
|00002670| 69 7d 7d 0a 0a 25 20 45 | 78 70 61 6e 64 20 74 6f |i}}..% E|xpand to|
|00002680| 20 73 74 72 65 74 63 68 | 20 61 6e 64 20 73 68 72 | stretch| and shr|
|00002690| 69 6e 6b 20 28 70 6c 75 | 73 20 61 6e 64 20 6d 69 |ink (plu|s and mi|
|000026a0| 6e 75 73 29 20 6f 66 20 | 70 61 72 61 6d 65 74 65 |nus) of |paramete|
|000026b0| 72 20 23 31 2e 0a 5c 64 | 65 66 5c 73 74 72 65 74 |r #1..\d|ef\stret|
|000026c0| 63 68 73 68 72 69 6e 6b | 23 31 7b 5c 65 78 70 61 |chshrink|#1{\expa|
|000026d0| 6e 64 61 66 74 65 72 5c | 65 61 74 64 69 6d 65 6e |ndafter\|eatdimen|
|000026e0| 70 61 72 74 5c 74 68 65 | 23 31 20 5c 65 6e 64 7d |part\the|#1 \end}|
|000026f0| 0a 5c 64 65 66 5c 65 61 | 74 64 69 6d 65 6e 70 61 |.\def\ea|tdimenpa|
|00002700| 72 74 23 31 20 23 32 5c | 65 6e 64 7b 23 32 7d 0a |rt#1 #2\|end{#2}.|
|00002710| 0a 5c 69 66 78 5c 75 6e | 64 65 66 69 6e 65 64 5c |.\ifx\un|defined\|
|00002720| 62 61 73 65 6c 69 6e 65 | 73 74 72 65 74 63 68 20 |baseline|stretch |
|00002730| 5c 64 65 66 5c 62 61 73 | 65 6c 69 6e 65 73 74 72 |\def\bas|elinestr|
|00002740| 65 74 63 68 7b 31 7d 5c | 66 69 0a 0a 5c 64 65 66 |etch{1}\|fi..\def|
|00002750| 5c 63 70 72 6f 67 73 65 | 74 75 70 7b 5c 63 74 65 |\cprogse|tup{\cte|
|00002760| 78 74 66 6f 6e 74 20 5c | 63 70 72 6f 67 63 68 61 |xtfont \|cprogcha|
|00002770| 72 73 20 5c 70 61 72 73 | 6b 69 70 3d 30 70 74 5c |rs \pars|kip=0pt\|
|00002780| 73 74 72 65 74 63 68 73 | 68 72 69 6e 6b 5c 70 61 |stretchs|hrink\pa|
|00002790| 72 73 6b 69 70 0a 20 20 | 20 20 5c 69 66 64 69 6d |rskip. | \ifdim|
|000027a0| 20 5c 63 70 72 6f 67 77 | 69 64 74 68 3d 30 70 74 | \cprogw|idth=0pt|
|000027b0| 20 5c 65 6c 73 65 20 5c | 68 73 69 7a 65 5c 63 70 | \else \|hsize\cp|
|000027c0| 72 6f 67 77 69 64 74 68 | 20 5c 66 69 0a 20 20 20 |rogwidth| \fi. |
|000027d0| 20 5c 63 70 72 6f 67 65 | 73 63 20 5c 73 70 61 63 | \cproge|sc \spac|
|000027e0| 65 73 6b 69 70 5c 66 6f | 6e 74 64 69 6d 65 6e 32 |eskip\fo|ntdimen2|
|000027f0| 5c 66 6f 6e 74 20 5c 78 | 73 70 61 63 65 73 6b 69 |\font \x|spaceski|
|00002800| 70 5c 73 70 61 63 65 73 | 6b 69 70 0a 20 20 20 20 |p\spaces|kip. |
|00002810| 5c 62 61 73 65 6c 69 6e | 65 73 6b 69 70 3d 5c 62 |\baselin|eskip=\b|
|00002820| 61 73 65 6c 69 6e 65 73 | 74 72 65 74 63 68 5c 63 |aselines|tretch\c|
|00002830| 70 72 6f 67 62 61 73 65 | 6c 69 6e 65 73 6b 69 70 |progbase|lineskip|
|00002840| 20 5c 70 61 72 69 6e 64 | 65 6e 74 3d 5c 63 70 72 | \parind|ent=\cpr|
|00002850| 6f 67 69 6e 64 65 6e 74 | 0a 20 20 20 20 5c 76 73 |ogindent|. \vs|
|00002860| 6b 69 70 5c 62 65 66 6f | 72 65 63 70 72 6f 67 73 |kip\befo|recprogs|
|00002870| 6b 69 70 7d 0a 5c 64 65 | 66 5c 65 6e 64 63 70 72 |kip}.\de|f\endcpr|
|00002880| 6f 67 7b 5c 65 6e 64 67 | 72 6f 75 70 20 5c 76 73 |og{\endg|roup \vs|
|00002890| 6b 69 70 5c 61 66 74 65 | 72 63 70 72 6f 67 73 6b |kip\afte|rcprogsk|
|000028a0| 69 70 7d 0a 5c 64 65 66 | 5c 63 70 72 6f 67 66 69 |ip}.\def|\cprogfi|
|000028b0| 6c 65 23 31 7b 5c 62 65 | 67 69 6e 67 72 6f 75 70 |le#1{\be|gingroup|
|000028c0| 20 5c 63 70 72 6f 67 73 | 65 74 75 70 20 5c 69 6e | \cprogs|etup \in|
|000028d0| 70 75 74 23 31 5c 65 6e | 64 63 70 72 6f 67 7d 0a |put#1\en|dcprog}.|
|000028e0| 5c 64 65 66 5c 63 70 72 | 6f 67 7b 5c 62 65 67 69 |\def\cpr|og{\begi|
|000028f0| 6e 67 72 6f 75 70 20 5c | 63 70 72 6f 67 74 74 73 |ngroup \|cprogtts|
|00002900| 70 61 63 65 66 61 6c 73 | 65 20 5c 63 70 72 6f 67 |pacefals|e \cprog|
|00002910| 73 65 74 75 70 20 5c 63 | 70 72 6f 67 61 72 67 7d |setup \c|progarg}|
|00002920| 0a 25 20 4c 69 6b 65 20 | 7b 76 65 72 62 61 74 69 |.% Like |{verbati|
|00002930| 6d 2a 7d 2c 20 7b 63 70 | 72 6f 67 2a 7d 20 75 73 |m*}, {cp|rog*} us|
|00002940| 65 73 20 60 73 71 75 61 | 72 65 20 75 27 20 66 6f |es `squa|re u' fo|
|00002950| 72 20 73 70 61 63 65 73 | 20 69 6e 20 71 75 6f 74 |r spaces| in quot|
|00002960| 65 64 20 73 74 72 69 6e | 67 73 2e 0a 5c 65 78 70 |ed strin|gs..\exp|
|00002970| 61 6e 64 61 66 74 65 72 | 5c 64 65 66 5c 63 73 6e |andafter|\def\csn|
|00002980| 61 6d 65 20 63 70 72 6f | 67 2a 5c 65 6e 64 63 73 |ame cpro|g*\endcs|
|00002990| 6e 61 6d 65 7b 25 0a 20 | 20 20 20 20 20 20 20 5c |name{%. | \|
|000029a0| 62 65 67 69 6e 67 72 6f | 75 70 20 5c 63 70 72 6f |begingro|up \cpro|
|000029b0| 67 74 74 73 70 61 63 65 | 74 72 75 65 20 5c 63 70 |gttspace|true \cp|
|000029c0| 72 6f 67 73 65 74 75 70 | 20 5c 63 70 72 6f 67 61 |rogsetup| \cproga|
|000029d0| 72 67 7d 0a 5c 65 78 70 | 61 6e 64 61 66 74 65 72 |rg}.\exp|andafter|
|000029e0| 5c 6c 65 74 5c 63 73 6e | 61 6d 65 20 65 6e 64 63 |\let\csn|ame endc|
|000029f0| 70 72 6f 67 2a 5c 65 6e | 64 63 73 6e 61 6d 65 3d |prog*\en|dcsname=|
|00002a00| 5c 65 6e 64 63 70 72 6f | 67 0a 25 20 49 6e 20 4c |\endcpro|g.% In L|
|00002a10| 61 54 65 58 20 77 65 20 | 6e 65 65 64 20 74 6f 20 |aTeX we |need to |
|00002a20| 63 61 6c 6c 20 5c 65 6e | 64 7b 63 70 72 6f 67 7d |call \en|d{cprog}|
|00002a30| 20 70 72 6f 70 65 72 6c | 79 20 74 6f 20 63 6c 6f | properl|y to clo|
|00002a40| 73 65 20 74 68 65 20 65 | 6e 76 69 72 6f 6e 6d 65 |se the e|nvironme|
|00002a50| 6e 74 2c 0a 25 20 77 68 | 65 72 65 61 73 20 69 6e |nt,.% wh|ereas in|
|00002a60| 20 70 6c 61 69 6e 20 54 | 65 58 20 74 68 69 73 20 | plain T|eX this |
|00002a70| 77 69 6c 6c 20 65 6e 64 | 20 74 68 65 20 6a 6f 62 |will end| the job|
|00002a80| 2e 20 20 54 68 65 20 74 | 65 73 74 20 66 6f 72 20 |. The t|est for |
|00002a90| 4c 61 54 65 58 20 69 73 | 20 6e 6f 74 0a 25 20 62 |LaTeX is| not.% b|
|00002aa0| 75 6c 6c 65 74 70 72 6f | 6f 66 2c 20 62 75 74 20 |ulletpro|of, but |
|00002ab0| 6d 6f 73 74 20 70 6c 61 | 69 6e 20 54 65 58 20 64 |most pla|in TeX d|
|00002ac0| 6f 63 75 6d 65 6e 74 73 | 20 64 6f 6e 27 74 20 72 |ocuments| don't r|
|00002ad0| 65 66 65 72 20 74 6f 20 | 74 68 65 20 4c 61 54 65 |efer to |the LaTe|
|00002ae0| 58 20 6c 6f 67 6f 2e 0a | 5c 69 66 78 5c 75 6e 64 |X logo..|\ifx\und|
|00002af0| 65 66 69 6e 65 64 5c 4c | 61 54 65 58 20 5c 6c 65 |efined\L|aTeX \le|
|00002b00| 74 5c 65 6e 64 63 70 72 | 6f 67 61 72 67 3d 5c 65 |t\endcpr|ogarg=\e|
|00002b10| 6e 64 63 70 72 6f 67 0a | 5c 65 6c 73 65 20 5c 64 |ndcprog.|\else \d|
|00002b20| 65 66 5c 65 6e 64 63 70 | 72 6f 67 61 72 67 7b 5c |ef\endcp|rogarg{\|
|00002b30| 69 66 63 70 72 6f 67 74 | 74 73 70 61 63 65 5c 65 |ifcprogt|tspace\e|
|00002b40| 6e 64 7b 63 70 72 6f 67 | 2a 7d 5c 65 6c 73 65 5c |nd{cprog|*}\else\|
|00002b50| 65 6e 64 7b 63 70 72 6f | 67 7d 5c 66 69 7d 0a 5c |end{cpro|g}\fi}.\|
|00002b60| 66 69 0a 0a 5c 66 69 20 | 20 20 20 20 25 20 5c 69 |fi..\fi | % \i|
|00002b70| 66 78 5c 75 6e 64 65 66 | 69 6e 65 64 5c 63 70 72 |fx\undef|ined\cpr|
|00002b80| 6f 67 73 65 74 75 70 0a | 0a 5c 65 6e 64 69 6e 70 |ogsetup.|.\endinp|
|00002b90| 75 74 0a 0a | |ut.. | |
+--------+-------------------------+-------------------------+--------+--------+